package com.ruoyi.ewem.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.ewem.domain.Physical;
import com.ruoyi.ewem.domain.Warehouse;

/**
 * 物流运输Mapper接口
 * 
 * @author ruoyi
 * @date 2024-07-27
 */
public interface EwemPhysicalMapper extends BaseMapper<Physical>
{
    /**
     * 查询物流运输
     * 
     * @param physicalId 物流运输主键
     * @return 物流运输
     */
    public Physical selectEwemPhysicalByPhysicalId(Long physicalId);

    /**
     * 查询物流运输列表
     * 
     * @param ewemPhysical 物流运输
     * @return 物流运输集合
     */
    public List<Physical> selectEwemPhysicalList(Physical ewemPhysical);

    /**
     * 新增物流运输
     * 
     * @param ewemPhysical 物流运输
     * @return 结果
     */
    public int insertEwemPhysical(Physical ewemPhysical);

    /**
     * 修改物流运输
     * 
     * @param ewemPhysical 物流运输
     * @return 结果
     */
    public int updateEwemPhysical(Physical ewemPhysical);

    /**
     * 删除物流运输
     * 
     * @param physicalId 物流运输主键
     * @return 结果
     */
    public int deleteEwemPhysicalByPhysicalId(Long physicalId);

    /**
     * 批量删除物流运输
     * 
     * @param physicalIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEwemPhysicalByPhysicalIds(Long[] physicalIds);

    List<Warehouse> selectWareHouseList();

    List<Physical> selectListByuser(String username);

    List<Physical> listAll();
}
